package com.soft.mainsite.module.sensitiveword.service;

import com.soft.mainsite.module.sensitiveword.dto.SensitiveWordDto;
import com.soft.mainsite.module.sensitiveword.dto.SensitiveWordQueryParams;

import java.util.List;

/**
 * SensitiveWordService.java 此类用于敏感词接口
 *
 * @author:李昭阳
 * @date:2019/4/11 0011
 * @remark:
 */
public interface SensitiveWordService {

    /**
     * 条件查询敏感词列表
     * @param queryParams
     * @return
     */
    List<SensitiveWordDto> getSensitiveWordByConditions(SensitiveWordQueryParams queryParams);

    /**
     * 添加敏感词
     * @param wordContents
     * @return
     */
    String save(String[] wordContents);

    /**
     * 放行敏感词
     * @param ids
     * @return
     */
    String permit(Long[] ids);

    /**
     * 删除敏感词
     * @param ids
     * @return
     */
    String delete(Long[] ids);

    /**
     * 校验敏感词接口
     * @param content
     * @return
     */
    String checkSensitiveWord(String content);
}
